home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
B-Book Series
/
(k)b4.d64
/
solution4.13
< prev
next >
Wrap
Text File
|
2007-02-28
|
368b
|
17 lines
0010 DIM AREA$ OF 1
0020 INPUT "WHAT IS THE ZONE?": AREA$
0030 INPUT "WHAT IS THE WEIGHT?": WEIGHT
0040 EXTRAS:=WEIGHT DIV 10
0050 CASE AREA$ OF
0060 WHEN "A"
0070 CHARGE:=20+EXTRAS*11
0080 WHEN "B"
0090 CHARGE:=22+EXTRAS*14
0100 WHEN "C"
0110 CHARGE:=25+EXTRAS*15
0120 OTHERWISE
0130 PRINT "ERROR IN INPUT"
0140 CHARGE:=0
0150 ENDCASE
0160 PRINT "CHARGE IS";CHARGE